package com.gxa.entity.community;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 
 * </p>
 *
 * @author yjl
 * @since 2022-10-11 10:05:39
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Accessors(chain = true)
@TableName("t_user_list")
@ApiModel(value = "UserList对象", description = "")
public class UserList implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value ="用户申请表主键")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value ="用户的编码")
    @TableField("user_num")
    private String userNum;

    @ApiModelProperty(value ="用户的密码")
    @TableField("user_pwd")
    private String userPwd;

    @ApiModelProperty(value ="申请人员姓名")
    @TableField("user_name")
    private String userName;

    @ApiModelProperty(value ="性别 0:女，1：男")
    @TableField("sex")
    private Integer sex;

    @ApiModelProperty(value ="账户（暂定和电话号码一致）")
    @TableField("user_account")
    private String userAccount;

    @ApiModelProperty(value ="用户电话号码")
    @TableField("user_phone")
    private String userPhone;

    @ApiModelProperty(value ="证件号码")
    @TableField("id_number")
    private String idNumber;

    @ApiModelProperty(value ="房屋编号(申请绑定房屋的地址)")
    @TableField("house_num")
    private String houseNum;

    @ApiModelProperty(value ="(人员类型 0租户1家庭成员2业主)")
    @TableField("owner_type")
    private Integer ownerType;

    @ApiModelProperty(value ="创建时间")
    @TableField(value = "create_time", fill = FieldFill.INSERT)
    private Date createTime;

    @ApiModelProperty(value ="用户黑名单状态0：白名单，1：黑名单")
    @TableField("user_status")
    private Integer userStatus;

    @ApiModelProperty(value ="总积分")
    @TableField("user_points")
    private Integer userPoints;

    @ApiModelProperty(value ="用户卡号")
    @TableField("user_card")
    private Integer userCard;

    @TableLogic(value = "0" ,delval ="1")
    @TableField("deleted")
    private Integer deleted;
}
